package com.huawei.hwclouds.lubanops.demo.common.task;

/**
 * @author y00438022
 * @since 2020/10/11
 **/
public class ExecuteHistory {

    /**
     * 业务标记
     */
    private String business;

    /**
     * 最后更新时间
     */
    private long lastUpdateTime;

    /**
     * 上次更新的时间的字符串标识
     */
    private String lastUpdateTimeString;

    /**
     * 更新的客户端的名字,一般用主机名和ip地址来标识
     */
    private String clientName;

    /**
     * 开始执行时间
     */
    private long startTime;

    /**
     * 执行耗时，单位毫秒
     */
    private int timeUsed;

    /**
     * 任务执行的结果状态
     */
    private String resultStatus;

    /**
     * 错误信息
     */

    private String errorMessage = "";

    /**
     * 删除的历史记录条目数
     */
    private int deletedHistoryCount;

    public String getBusiness() {
        return business;
    }

    public void setBusiness(String business) {
        this.business = business;
    }

    public long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(long lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getLastUpdateTimeString() {
        return lastUpdateTimeString;
    }

    public void setLastUpdateTimeString(String lastUpdateTimeString) {
        this.lastUpdateTimeString = lastUpdateTimeString;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public int getTimeUsed() {
        return timeUsed;
    }

    public void setTimeUsed(int timeUsed) {
        this.timeUsed = timeUsed;
    }

    public String getResultStatus() {
        return resultStatus;
    }

    public void setResultStatus(String resultStatus) {
        this.resultStatus = resultStatus;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public int getDeletedHistoryCount() {
        return deletedHistoryCount;
    }

    public void setDeletedHistoryCount(int deletedHistoryCount) {
        this.deletedHistoryCount = deletedHistoryCount;
    }
}
